1 /************************************************************
2 * Copyright *
3 * Portions of this software are Copyright (c) 1993 - 2002, *
4 * Chad Z. Hower (Kudzu) and the Indy Pit Crew *
5 * - http://www.nevrona.com/Indy/ *
6 ************************************************************/
7 package org.indy.io;
8
9 import java.io.IOException;
10 import java.io.InterruptedIOException;
11
12 import java.net.ServerSocket;
13
14 import org.indy.IndyThread;
15
16
17 /***
18 * Description of the Class
19 *
20 *@author unknown
21 */
22 public class ServerIOHandlerSocket extends ServerIOHandler {
23 /***
24 * Description of the Method
25 */
26 public void init() {
27 super.init();
28 }
29
30 /***
31 * Description of the Method
32 *
33 *@param ss Description of the Parameter
34 *@param thread Description of the Parameter
35 *@return Description of the Return Value
36 *@throws InterruptedIOException Description of the Exception
37 */
38 public IOHandler accept(ServerSocket ss, IndyThread thread)
39 throws InterruptedIOException, IndyIOException {
40 try {
41 return new IOHandlerSocket(ss.accept());
42 }
43 catch (InterruptedIOException inie) {
44 throw inie;
45 }
46 catch (IOException ioe) {
47 throw new IndyIOException(ioe);
48 }
49 }
50 }
This page was automatically generated by Maven